<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <?php include $this->getViewFile('/common/Nav') ?>
  <div class="h_a">查找</div>
  <form method="post" action="" id="searchForm">
    <div class="search_type cc mb10">
      <div class="mb10"> 推广人：
        <?php
		echo Form::select(MembersGroupModel::model()->getSpreadMemberList(),$recommend,'name="recommend"','全部');
		?>
        报名时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="<?php echo $start_time?>" placeholder="选择起始时间">
        -
        <input type="text" class="input length_2 J_date" name="end_time" value="<?php echo $end_time?>" placeholder="选择结束时间">
        <button class="btn">搜索</button>
      </div>
    </div>
  </form>
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td align="center">用户名</td>
            <td align="center">报名数总数</td>
            <td align="center">审核通过</td>
            <td align="center">待审核</td>
            <td align="center">审核不通过</td>
            <td align="center">邮寄样品</td>
            <td align="center">取消报名</td>
          </tr>
        </thead>
        <tbody>
          <?php
		  foreach($data as $rs){
		  ?>
          <tr>
            <td align="center"><?php echo $rs['username']  ?></td>
            <td align="center"><?php echo (int)$rs['count']  ?></td>
            <td align="center"><?php echo (int)$rs['status'][1]  ?></td>
            <td align="center"><?php echo (int)$rs['status'][0]  ?></td>
            <td align="center"><?php echo (int)$rs['status'][2]  ?></td>
            <td align="center"><?php echo (int)$rs['status'][3]  ?></td>
            <td align="center"><?php echo (int)$rs['status'][4]  ?></td>
          </tr>
          <?php
		  }
		  ?>
        </tbody>
      </table>
      <div class="p10">
        <div class="pages"><?php echo $Page;?></div>
      </div>
    </div>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script> 
</body>
</html>